using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline.Processors;


namespace DSEngine.AnimationContentPiple
{
    [ContentImporter(".animation", DisplayName = "DSEngine.AnimationContentPiple.AnimationImporter", DefaultProcessor = "AnimationProcessor")]
    public class AnimationImporter : ContentImporter<string>
    {
        public override string Import(string input, ContentImporterContext context)
        {
            string fileName = System.IO.Path.GetFileNameWithoutExtension(input);
            //context.AddDependency(System.IO.Path.GetDirectoryName(input) + "\\" + fileName);
            string str = (System.IO.File.ReadAllText(input));
            str = input + "{|}" + str;
            //throw new Exception(str);
            return str;
        }
    }
}
